using System;
using System.Collections.Generic;
using System.Text;

namespace com.flajaxian.AWS
{
    /// <summary>
    /// 
    /// </summary>
    public class Grant
    {
        private Grantee _grantee;
        private Permission _permission;

        /// <summary>
        /// 
        /// </summary>
        public Grantee Grantee
        {
            get { return this._grantee; }
            set { this._grantee = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public Permission Permission
        {
            get { return this._permission; }
            set { this._permission = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ToXml()
        {
            return String.Format(SR.GrantXml, this.Grantee.ToXml(), this.Permission.ToString());
        }
    }
}
